/*
 * @Author: cx19940809
 * @Date: 2025-04-25 14:32:01
 * @LastEditors: cx19940809
 * @LastEditTime: 2025-04-25 16:51:16
 * @FilePath: /leosmart/specs/NativeToast.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import * as TurboModuleRegistry from 'react-native/Libraries/TurboModule/TurboModuleRegistry';
export interface Icon {
  glyph: string;
  size: number;
  fontName: string;
  color: string;
}
type Position = 'TOP' | 'CENTER' | 'BOTTOM';
export type CustomOptions = Options & {
  icon: Icon;
};
export type Options = {
  message: string;
  duration?: number;
  position?: Position;
};
export interface Spec extends TurboModule {
  showCustomToast(options: CustomOptions): void;
  showToast: (options: Options) => void;
  makeToastActivity: () => void;
  hideToastActivity: () => void;
}
export default TurboModuleRegistry.getEnforcing<Spec>('NativeToast');
